Csharp Code
Activity Description
Compiles and runs any C#.NET code fragment.
Settings
- Language type – The coding language type.
- Code name – The name of the code fragment.
- Code Description – The description of the code fragment.
- Assembly List – The list of external dll files used within the code fragment. By default, the assembly list contains several dll files. You may extend the list by importing additional dll files and use them within the code.
To use an existing code fragment, select it from the Code Name drop-down list.
The imported dll files must exist in the machine where the Actions Express Executor is installed, in the specified path.
To import the dll files you must have the MS ILMerge utility installed on your machine. If you do not have it installed, click the plus icon to get the instructions for the installation procedure.
The code fragment function signature must remain a Dictionary (of string, object) and must return a variable of the same type.
Two functions can be used to access variables within the code fragment:
GetWorkflowMemoryNodeData ("<VarName>")
SetWorkflowMemoryNodeData ("<VarName>", "<Value>")
When creating new variables via the code activity, they can be used in other activities only by setting them to the workflow's memory.